package com.huawei.hms.support.api.sns;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.sns.internal.AddFriendResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiSnsApiImpl$5 extends PendingResultImpl<AddFriendResult, AddFriendResp> {
    HuaweiSnsApiImpl$5(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }

    public /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        return a((AddFriendResp) iMessageEntity);
    }

    public AddFriendResult a(AddFriendResp addFriendResp) {
        AddFriendResult addFriendResult = new AddFriendResult();
        addFriendResult.setStatus(Status.SUCCESS);
        addFriendResult.setResult(addFriendResp.getResult());
        HMSLog.i("HuaweiSnsApiImpl", "addFriend onComplete");
        return addFriendResult;
    }
}
